#include "insertimagedlgimpl.h"

#include <QFileDialog>
#include <QLineEdit>
//
InsertImageDlgImpl::InsertImageDlgImpl( QWidget * parent, Qt::WFlags f) 
	: QDialog(parent, f)
{
	setupUi(this);
}
//


void InsertImageDlgImpl::on_btnBrowse_clicked()
{
	QString fileName = QFileDialog::getOpenFileName(this, tr("Insert an image"), "",
													tr("Image files (*.png *.jpg *.bmp);;All files (*.*)"));
	
	leImageFile->setText(fileName);
	
	QPixmap *image = new QPixmap(fileName);
	
	laImageDisplay->setPixmap(*image);
}
